package Text28;

import java.util.*;

public class Main {
    static int N = 40;
    static int[][] f = new int[N][N];

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int m = in.nextInt();
        f[1][1] = 1;
        if (n % 2 == 0 && m % 2 == 0) {
            System.out.println(0);
            return;
        }
        for (int i = 1; i <= n; i++) {
            for (int j = 1; j <= m; j++) {
                if (i == 1 && j == 1) {
                    continue;
                }
                if (i % 2 != 0 || j % 2 != 0) {
                    f[i][j] = f[i - 1][j] + f[i][j - 1];
                }
            }
        }
        System.out.println(f[n][m]);
    }
}

